package com.sz.common.pay.citic.constant;

/**
 * Created by siqishangshu on 17/10/16.
 */
public class Constant {

    /**
     * citicBankFlag
     *  中信标志 0：中信；1：他行
     */
    public class CiticBankFlag{
        public static final String CITIC = "0";
        public static final String OTHER = "1";
    }

    /**
     * cityFlag
     * 同城标志 0：同城；1：异地 char(1) 中信内转账可空
     */
    public class CityFlag{
        public static final String CITY_WIDE = "0";
        public static final String ALLOPATRY = "1";
    }

    /**
     * 预约支付标志 0：非预约交易；1：预约交易
     */
    public class PreFlg{
        public static final String CITY_WIDE = "0";
        public static final String ALLOPATRY = "1";
    }
    /**
     * 交易方式 ，1-行内转账；2-即日支付；3-海外汇款；4-普通支付
     */
    public class TranType{
        public static final String INTERNAL   = "1";
        public static final String IMMEDIATE  = "2";
        public static final String OVERSEAS   = "3";
        public static final String COMMON     = "4";
    }
    /**
     * feeType
     * 费用扣除方式：OUR-付款人支付、BEN-收款人支付、SHA-对半分担
     */
    public class FeeType{
        public static final String OUR   = "OUR";
        public static final String BEN  = "BEN";
        public static final String SHA   = "SHA";
    }

    /**
     * payUseNo
     * 支付用途代号char(2), 交易方式为行内转账、即日支付和海外汇款时，
     * 送空；交易方式为普通支付时，必输;
     * 交易方式为普通支付时，
     * 数据字典：
     *  20：Sundry Credit、
     *  22：Salary Credit、
     *  23：Dividend Credit
     */
    public class PayUseNo{
        public static final String SUNDRY       = "20";
        public static final String SALARY       = "22";
        public static final String DIVIDEND     = "23";
    }
    /**
     * postscript
     * 交易方式为海外汇款时，所有从境外支付到中国内地的人民币海外汇款必须提供支付用途说明
     * （CCTFDR-资本项下跨境支付、CCDNDR-慈善捐款、CGODDR-货物贸易、COCADR-其他经常项目、CSTRDR-服务贸易
     */
    public class Postscript{
        public static final String CROSS_BORDER_PAYMENT     = "CCTFDR";
        public static final String CHARITABLE_DONATIONS     = "CCDNDR";
        public static final String GOODS_TRADE              = "CGODDR";
        public static final String OTHER_PROJECTS           = "COCADR";
        public static final String SERVICE_TRADE            = "CSTRDR";
    }
    /**
     * accountType
     * 账户类型 char(2)，ST:活期储蓄；IM:活期支票，仅当查询账号为信银国际账号时返回
     */
    public class AccountType{
        public static final String CURRENT_DEPOSIT      = "ST";
        public static final String CURRENT_CHECK        = "IM";
    }

    /**
     * accountType2
     * 账户类型 0：公司；1：个人 char(1)
     */
    public class AccountType2{
        public static final String COMPANY      = "0";
        public static final String PERSONAL        = "1";
    }
    /**
     * frozenFlag
     * 账号状态char(1)， A：正常；D:睡眠；F:冻结，仅当查询账号为信银国际账号时返回
     */
    public class FrozenFlag{
        public static final String NORMAL         = "A";
        public static final String SLEEP          = "D";
        public static final String FROZEN         = "F";
    }
    /**
     * controlFlag
     * --控制标签char(1)，0：客户系统不兼容银行端新增返回字段1：客户系统兼容银行端新增返回字段，标签可空
     */
    public class ControlFlag{
        public static final String INCOMPATIBLE   = "0";
        public static final String COMPATIBLE     = "1";
    }
    /**
     * creditDebitFlag;
     * 借贷标识 借：D，贷：C char(1)
     */
    public class CreditDebitFlag{
        public static final String DEBIT      = "D";
        public static final String CREDIT     = "C";
    }
    /**
     * cashTransferFlag;
     * 现转标识 0：现金；1：转帐 char(1)
     */
    public class CashTransferFlag{
        public static final String CHSH       ="0";
        public static final String TRANSFER   ="1";
    }
    /**
     * e3rtFlag
     * 退汇标志 char(1)，0：退汇；1：非退汇
     */
    public class E3rtFlag{
        public static final String WITHDRAWAL         = "0";
        public static final String NON_WITHDRAWAL     = "1";
    }
    /**
     *   billType
     *   回单类型char(1)，0：全部；1：转账类；2：利息类；3：收费类；4：电子缴税；5：网银结售汇；6：现金管理转账
     */
    public class BillType{
        public static final String ALL                = "0";
        public static final String TRANSFER           = "1";
        public static final String INTEREST           = "2";
        public static final String TOLL               = "3";
        public static final String TAXES_ELECTRC      = "4";
        public static final String SETTLEMENT_SALE    = "5";
        public static final String CASH_TRANSFER      = "6";
    }
    /**
     * qryType
     * 查询类型char(1),  1：T+0；2：T+1
     */
    public class QryType{
        public static final String T_PLUS_0 = "1";
        public static final String T_PLUS_1 = "2";
    }
    /**
     * brStt
     * 回单状态（T+0返回）varchar(1)，1：正常；2：冲正；3：被冲正；4：当日冲正
     */
    public class BrStt{
        public static final String NORMAL         = "1";
        public static final String RED_POSITIVE   = "2";
        public static final String BEING_POSITIVE = "3";
        public static final String DAY_RED = "1";
    }
    /**
     * //billType
     * 回单类型varchar(6)，
     * 100000：存款回单；100001：取款回单；
     * 200000：转账回单；200001：缴税回单；
     * 300000：收费回单；400000：定期回单；
     * 400001：活期回单
     */
    public class BillType2{
        public static final String DEPOSIT      = "100000";
        public static final String WITHDRAWALS  = "100001";
        public static final String TRANSFER     = "200000";
        public static final String TAX          = "200001";
        public static final String CHARGEBACK   = "300000";
        public static final String REGULAR      = "400000";
        public static final String CURRENT      = "400001";
    }
    /**
     * cdfg
     * 借贷标识（T+0返回）varchar(1)， C：贷/收；D：借/付
     */
    public class Cdfg{
        public static final String DEBIT      = "D";
        public static final String CREDIT     = "C";
    }
    /**
     * isCurrDay
     * 是否为T+0 日varchar (1)， 1：是；2：否
     */
    public class IsCurrDay{
        public static final String YES  = "1";
        public static final String NO   = "2";
    }
    /**
     * workFlag;
     * 是否工作日 W：工作日；N：非工作日 char(1)-->
     */
    public class WorkFlag{
        public static final String WORK_DAY       = "W";
        public static final String NON_WORK_DAY   = "N";
    }
    /**
     * flag;
     * 匹配状态 0：匹配；1：名称和账号不符；2：账号与账号类型不匹配char(1)-->
     */
    public class Flag{
        public static final String MATCHED                = "0";
        public static final String NAME_ACCOUNT_UNMATCH   = "1";
        public static final String ACCOUNT_TYPE_UNMATCH       = "2";
    }
    /**
     *  stt;
     *  状态标志  char(1) 0：成功；1：失败；2：未知；3：审核拒绝；4：用户撤销
     */
    public class Stt{
        public static final String SUCCEED        = "0";
        public static final String FAILURE        = "0";
        public static final String UNKNOWN        = "0";
        public static final String REJECTION      = "0";
        public static final String REVOCATION     = "0";
    }
}
